<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button">点击</button>
		<script type="text/javascript">
			var btn = document.querySelector("button");

			btn.addEventListener("click", function() {
				// console.log(location.href);
				location.href = "http://www.mtime.com";
			});
		</script>
	</body>
</html>
